
from module import page,templates,db,table

def customer_login_page(req,name):
    p = page.Page()
    p.dic['content'] = p.fill_order_cat()
    tpl = templates.read_template('master_logged.tpl')
    return tpl % p.dic

def advanced_search_form(req,name):
    p = page.Page()
    p.dic['content'] = templates.read_template('employee/advanced_search.tpl')
    tpl = templates.Template().master
    return tpl % p.dic

def show_order_view_table(req,name):
    p = page.Page()
    p.dic['content'] = p.fill_order_view_table()
    tpl = templates.Template().master
    return tpl % p.dic

def show_product_view_table(req,name):
    p = page.Page()
    p.dic['content'] = p.fill_product_view_table()
    tpl = templates.Template().master
    return tpl % p.dic
    
def home(req,name):
    pass

